<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>不符合项人员选择</title>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <script src="../../../../static/struct/layuimini/lib/jquery-3.4.1/jquery-3.4.1.min.js" charset="UTF-8"></script>
    <link rel="stylesheet" href="../../../../static/struct/layuimini/lib/layui-v2.5.5/css/layui.css " media="all">
    <link rel="stylesheet" href="../../../../static/struct/layuimini/css/public.css" media="all">
    <script src="../../../../static/struct/layuimini/lib/layui-v2.5.5/layui.js" charset="utf-8"></script>
    <script src="../../../../static/js/generaljs/watermarkbycanvas.js" charset="UTF-8"></script>

</head>
<body onload="addWaterMarker()" style="margin: 10px 10px 10px 10px">
<div id="human" class="transferForChoose"></div>


<script>

        //var person = '';
        layui.use(['transfer', 'layer', 'util'], function() {
            var $ = layui.$
                , transfer = layui.transfer
                , layer = layui.layer
                , util = layui.util;

            var users = transfer.getData;

           $.ajax({
               url : "/loading/human"
               ,type : "POST"
               ,data : {
                   "data" : "1"
               }
               /*
               ,onchange: function(data, index){
                console.log(data); //得到当前被穿梭的数据
                console.log(index); //如果数据来自左边，index 为 0，否则为 1
                    person = data;
                    console.log(person);
               }
                */
               ,dataType : "json"
               ,success : function(res){
                   //console.log(res);
                   transfer.render({
                       elem: '#human'
                       , data: res
                       , title: ['待选处理人', '已选处理人']
                       , showSearch: true
                       , width : 200
                       , height : 300
                       , id : 'humanTransferId'
                   });
               }
           })

        });

</script>

</body>
</html>